package com.hong.spring.grpc;

public class HelloWorldApp {

    public static void main(String[] args) throws Exception {
        //服务端
        int port = 8080;
        GrpcServer server = new GrpcServer(port);
        server.start();
        //客户端
        HelloWorldClient client = new HelloWorldClient("localhost", port);
        String reply = client.sayHello("hi hong");
        System.out.println(reply);
        //关闭服务
        server.shutdown();
    }
}